/****************************************************
          File Name:sem_unlink.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sat 20 Sep 2014 06:43:04 PM CST
*****************************************************/

#include"posix_ipc.h"

int main(int argc, char *argv[])
{
	Usage(argc,"/sem",argv[0],argv[1]);

    if(sem_unlink(argv[1])==-1)
        err("sem_unlink");

    printf("removed\n");
    exit(EXIT_SUCCESS);
}
